/*
 * @Author: 'YSJ' '951866543@qq.com'
 * @Date: 2024-09-11 09:16:59
 * @LastEditors: 'YSJ' '951866543@qq.com'
 * @LastEditTime: 2024-09-11 09:17:18
 * @FilePath: \smart-subway\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Description:
 * @Author: your name
 * @version:
 * @Date: 2023-09-22 11:37:31
 * @LastEditors: your name
 * @LastEditTime: 2024-09-10 10:24:12
 */
import { component } from 'v-viewer'
import { createRouter, createWebHashHistory } from 'vue-router'

// 2. 定义一些路由
// 每个路由都需要映射到一个组件。
// 我们后面再讨论嵌套路由。

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/HomePage.vue'),
  },
  {
    path: '/real-time-monitoring',
    name: 'RealTimeMonitoring',
    component: () => import('@/views/pages/RealTimeMonitoringPage.vue'),
  },
  {
    path: '/key-activities',
    name: 'KeyActivities',
    component: () => import('@/views/pages/KeyActivitiesPage.vue'),
  },
  {
    path: '/development-history',
    name: 'DevelopmentHistory',
    component: () => import('@/views/pages/DevelopmentHistoryPage.vue'),
  },
  {
    path: '/key-point-management',
    name: 'KeyPointManagement',
    component: () => import('@/views/pages/KeyPointManagementPage.vue'),
  },
]
// 3. 创建路由实例并传递 `routes` 配置
// 你可以在这里输入更多的配置，但我们在这里
// 暂时保持简单
const router = createRouter({
  // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
  history: createWebHashHistory(),
  routes, // `routes: routes` 的缩写
})

export default router
